﻿/**********************************************************************************************************************/
/* See License.txt file for details.                                                                                  */
/**********************************************************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodePlex.SqlServer.LocalDB.API
{
    public class LocalDBInstanceInfo
    {
        private string instanceName;
        private string sharedName;
        private bool doesExist;
        private bool isRunning;
        private bool isShared;
        private string connectionAddress;
        private string ownerSID;

        public string InstanceName
        {
            get { return instanceName; }
        }

        public string SharedName
        {
            get { return sharedName; }
        }

        public bool DoesExist
        {
            get { return doesExist; }
        }

        public bool IsRunning
        {
            get { return isRunning; }
        }

        public bool IsShared
        {
            get { return isShared; }
        }

        public string ConnectionAddress
        {
            get { return connectionAddress; }
        }

        public string OwnerSID
        {
            get { return ownerSID; }
        }

        public LocalDBInstanceInfo(
            string instanceName,
            string sharedName,
            bool doesExist,
            bool isRunning,
            bool isShared,
            string connectionAddress,
            string ownerSID)
        {
            this.instanceName = instanceName;
            this.sharedName = sharedName;
            this.doesExist = doesExist;
            this.isRunning = isRunning;
            this.isShared = isShared;
            this.connectionAddress = connectionAddress;
            this.ownerSID = ownerSID;
        }
    }
}
